package Practice.Practice_01;

public class demo04 {
    public static void main(String[] args) {
        {
            boolean a = true;
            boolean b = false;
            boolean c = true;
            boolean d = false;
            boolean e = a & b;
            boolean f = a & c;
            boolean g = b & c;
            boolean h = b & d;
            System.out.println("e=" + e + ", f=" + f + ", g=" + g + ", h=" + h);
        }
        {
            boolean a = true;
            boolean b = false;
            boolean c = true;
            boolean d = false;
            boolean e = a | b;
            boolean f = a | c;
            boolean g = b | c;
            boolean h = b | d;
            System.out.println("e=" + e + ", f=" + f + ", g=" + g + ", h=" + h);
        }
        {
            boolean a = true;
            boolean b = false;
            boolean c = true;
            boolean d = false;
            boolean e = a ^ b;
            boolean f = a ^ c;
            boolean g = b ^ c;
            boolean h = b ^ d;
            System.out.println("e=" + e + ", f=" + f + ", g=" + g + ", h=" + h);
        }
        {
            boolean a = !true;
            boolean b = !false;
            System.out.println("a=" + a + ", b=" + b);
        }
    }
}
